<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// 
//  search.php
//  www.6block.com
//  
//  Created by WillLee on 2011-06-20.
//  Copyright 2011 lishuzu. All rights reserved.
// 

class Search extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->model('Search_model');
		$this->userinfo = $this->session->userdata('userinfo');
	}
	public function index()
	{
		
	}
	
	function category($catid = ''){
		$catid = intval(xss_clean($catid));
		if ($catid) {
			$searchdata = $this->Search_model->get_data_by_catid($catid);
		}else{
			$searchdata = array();
		}
		$this->load->template('search_tpl',$searchdata);
	}
}

/* End of file search.php */
/* Location: ./application/controllers/search.php */